package cn.yyh.user.pojo.po;

import cn.yyh.basic.domain.BaseDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author 杨永航
 * @version 1.0
 * @Title: User
 * @Package: cn.yyh.user.pojo.po
 * @date 2021/6/30
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
public class User extends BaseDomain {
    private String username;
    private String email;
    private String phone;
    private String salt;
    private String password;
    private Integer state = 0;
    private Integer age;
    private Date createTime = new Date();
    private String headImg;
    private Long loginInfoId;

    public User(Long id, String username, String email, String phone, String salt, String password, Integer state, Integer age, Date createTime, String headImg, Long loginInfoId) {
        super(id);
        this.username = username;
        this.email = email;
        this.phone = phone;
        this.salt = salt;
        this.password = password;
        this.state = state;
        this.age = age;
        this.createTime = createTime;
        this.headImg = headImg;
        this.loginInfoId = loginInfoId;
    }
}
